"""
DragonQuant 自定义异常类
"""

class DragonQuantError(Exception):
    """DragonQuant 基础异常类"""
    pass


class DataError(DragonQuantError):
    """数据相关异常"""
    pass


class DataNotFoundError(DataError):
    """数据未找到异常"""
    pass


class DataValidationError(DataError):
    """数据验证异常"""
    pass


class StrategyError(DragonQuantError):
    """策略相关异常"""
    pass


class PortfolioError(DragonQuantError):
    """投资组合相关异常"""
    pass


class InsufficientFundsError(PortfolioError):
    """资金不足异常"""
    pass


class InsufficientSharesError(PortfolioError):
    """股份不足异常"""
    pass


class ConfigurationError(DragonQuantError):
    """配置相关异常"""
    pass


class BacktestError(DragonQuantError):
    """回测相关异常"""
    pass


class IndicatorError(DragonQuantError):
    """技术指标计算异常"""
    pass


class NetworkError(DragonQuantError):
    """网络相关异常"""
    pass